package com.zkthink.ceres.admin.interceptor;

import java.util.Arrays;
import java.util.List;

/**
 * <p>
 * 非鉴权白名单
 * </p>
 *
 * @author vivi.huang
 * @since 2020/7/1
 */
public class NoAuthUri {

    private static List<String> uriList = Arrays.asList("/tenant-file/apply/upload",
            "/file/apply/upload",
            "/tenantApply/apply",
            "/tenantApply/check",
            "/verification/send/tenantApply", "/tenantApply/applyPage/");

    public static boolean valid(String uri) {
        return uriList.stream().anyMatch(u -> uri.indexOf(u) > -1);
    }
}